<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <span></span>

</body>

<script>
    var span = document.querySelector('span');
    var array = location.search.split('=');
    console.log(array[1]);
    span.innerHTML = '欢迎用户' + decodeURI(array[1]) + '到来';
</script>

</html>